from django.db import models


# Create your models here.
class User(models.Model):
    id = models.AutoField(primary_key=True)
    username = models.CharField(max_length=50)
    open_id = models.CharField(max_length=50)
    uniacid = models.CharField(max_length=50)
    avatar_url = models.CharField(max_length=255)
    nick_name = models.CharField(max_length=50)
    gender = models.IntegerField(default=2)
    country = models.CharField(max_length=50)
    province = models.CharField(max_length=50)
    city = models.CharField(max_length=50)
    phone = models.CharField(max_length=50)
    admin = models.IntegerField(default=0, editable=True, null=True)
    status = models.IntegerField(default=2)
    create_time = models.DateTimeField(auto_now_add=True)
    create_id = models.CharField(max_length=50)
    update_time = models.DateTimeField(auto_now=True)
    update_id = models.CharField(max_length=50)

    class Meta:
        db_table = "anchor_user"


class FeedBack(models.Model):
    id = models.AutoField(primary_key=True)
    open_id = models.CharField(max_length=50)
    phone = models.CharField(max_length=50)
    device_model = models.CharField(max_length=50)
    device_system = models.CharField(max_length=50)
    app_version = models.CharField(max_length=50)
    content = models.CharField(max_length=255)
    status = models.IntegerField(default=2)
    create_time = models.DateTimeField(auto_now_add=True)
    create_id = models.CharField(max_length=50)
    update_time = models.DateTimeField(auto_now=True)
    update_id = models.CharField(max_length=50)

    class Meta:
        db_table = "anchor_feedback"
